import request from '@/utils/request'

// 查询首页热门院校数据
export const getHotUniversity = (params) => {
  return request({
    url: '/university/hot',
    method: 'get',
    params
  });
};

// 查询院校数据
export const getCollegeList = (data) => {
  return request({
    url: '/university',
    method: 'post',
    data:data
  });
};

//获取热门10条院校
export const getTop10 = () => {
  return request({
    url: '/university/top10',
    method: 'get',

  });
};

//获取院校详情数据
export const getUniversityDetail = (id) => {
  return request({
    url: `/university/universityDetail/${id}`,
    method: 'get',
  });
};


//获取招生计划数据
export const getAdmissionPlan = (params) => {
  return request({
    url: `/university/admissionPlan/${params.id}`,
    method: 'get',
    params:{year:params.year,type:params.type}
  });
};

